/**
 * 教师模块
 */
const mongoose = require('mongoose')

const Schema = mongoose.Schema

const teacherSchema = Schema({
  teacherId: {
    type: String,
    required: true
  },
  uploadCourse: { // 教师上传的课程，包括课程名，购买量，浏览量，课程价格
    type: Array,
    required: true
  },
  leaveWords: { // 学生给教师的留言
    type: Array,
    required: false
  }
})

module.exports = mongoose.model('Teacher', teacherSchema)